<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .my-transform {
            /* 距离顶部 300px */
            /* margin-top: 300px; */
            margin: 100px 200px;
            width: 200px;
            height: 100px;
            background-color: red;
            /*transform 转换，设置顺时针旋转60度 */
            transform: rotate(60deg);
        }
        
        img {
            /* transition 过渡，设置过渡属性，1s时间内线性变化 */
            transition: 1s linear;
            /* 设置图片边框 */
            border: 1px solid blue;
        }
        
        img:hover {
            /*transform 转换，设置缩放2倍 */
            transform: scale(2);
        }
    </style>

</head>
<div class="my-transform">
    html5 programming
</div>

<div style="margin-left: 300px;">
    <img src=" images/superman.png " alt=" " width="300px " height="300px ">
</div>

<body>

</body>

</html>